package com.hdax.dmw.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dmw.entity.user.DmLinkUser;
import com.hdax.dmw.user.service.DmLinkUserService;
import com.hdax.dmw.user.mappers.DmLinkUserMapper;
import org.springframework.stereotype.Service;

/**
* @author guoyisha
* @description 针对表【dm_link_user(常用联系人表
)】的数据库操作Service实现
* @createDate 2023-06-15 12:19:00
*/
@Service
public class DmLinkUserServiceImpl extends ServiceImpl<DmLinkUserMapper, DmLinkUser>
    implements DmLinkUserService{

    @Override
    public DmLinkUser detail(Long userId, Long linkId) {
        QueryWrapper<DmLinkUser> queryWrapper = new QueryWrapper<DmLinkUser>()
                .eq("id", linkId)
                .eq("userId", userId);
        return getOne(queryWrapper);
    }
}




